package cn.tedu.egarticle0618.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
public class UserArticleParam {
    @NotBlank(message = "文章内容不能为空白")
    @Schema(description = "文章标题", required = true)
    private String title;
    @Size(min = 10, max = 500, message = "文章长度内容为10-500")
    @Schema(description = "文章内容", required = true)
    private String content;
}
